home *** CD-ROM | disk | FTP | other *** search
- ; Uah! This is a little eor-coder, just to explain how it works.
- ; The main-code is from HEN13713. He wrote it MILLIONS of years ago.
- ; But now I found it on one of my MILLIONS of disks, and as we do
- ; coding-systems in school, I wrote an article and rewrote this source.
- ; Don't ask me whether it works in the two directions but I hope
- ; you understand the MAINidea!?!
- ; Hope you like it anyway... Don't blame it on me...
- ; Bye, Eddy/COAST 1991!
- ; Eor, eor, eor.... oder wer?
- ; Naja... irgendwie so... vielleicht auch nicht...? Wer weiss?
- ;
-
- Startup:
- lea text,a0 ; Text nach a0
- lea codestring,a1 ; 'Codiervektor' nach a1
- move #$200,d0 ; Laenge nach d0. Ist natuerlich viel zu lang
- ; aber ich programmiere normalerweise nicht in
- ; Assembler... Sorry! Bin ich denn Jesus?
- decode:
- move.b (a1)+,d1 ; noch ein Codiervektorbyte nach d1
- eor.b d1,(a0)+ ; und eor'en mit dem Textbyte
- cmp.b #$ff,d1 ; Ende von 'Codiervekor'?
- bne.b weiter ; Nä!
- lea codestring,a1 ; Doch, also 'codiervektor' wieder von vorne
- weiter:
- dbf d0,decode ; Schaleife (Kamasutra, Hadschaalefoma?)
- rts ; The most important thing in this source, haha!
-
- codestring:
- dc.b "Codiervektor",$ff
-
- text:
- dc.b "Und hier kommt der Text hin...",0
-
-